<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateFeedbackTable extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('feedback', function (Blueprint $table) {
			$table->increments('id');
			$table->string('name', 20)->comment('姓名');
			$table->string('mobile', 64)->comment('电话');
			$table->string('msg',255)->comment('留言');
			$table->integer('created_at')->comment('创建时间');
			$table->integer('updated_at')->comment('最后更新时间');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::dropIfExists('feedback');
	}
}
